//=============================================================
// 创建人:            ssd
// 创建时间:          8/15/2024 9:19:30 PM
// 邮箱：             1292934053@qq.com
//==============================================================
using LF.Domain.Entities;
using LF.Domain;
using LF.Shared.Dtos.Input;

namespace LF.Domain.Services
{
    public interface IRoleManagerService: IDomainService
    {
        List<Role> All(int index, int pageSize, RoleSearch search);
        long Count(RoleSearch search);
        Role Get(Guid id);
        bool RealDelete(Guid id);

        bool Insert(Role role);
        bool Update(Role role);
        /// <summary>
        /// 添加权限菜单
        /// </summary>
        /// <param name="roleMenu"></param>
        /// <returns></returns>
        bool Inserts(List<RoleMenu> roleMenu);
        /// <summary>
        /// 清除权限所有菜单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool ClearMenus(Guid id);
        /// <summary>
        /// 获取权限菜单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        List<RoleMenu> Meuns(Guid id);

        /// <summary>
        /// 获取所有权限
        /// </summary>
        /// <returns></returns>
        List<Role> All();
    }
}